<div id="memberInfo" class="modal fade" role="dialog" aria-hidden="true" data-backdrop="static" >
    <div class="modal-dialog">
       <div class="modal-content">
          <div class="modal-header">
             <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
             <h4 class="modal-title">会员信息</h4>
          </div>
          <div class="modal-body">
             <form action="#" class="form-horizontal">
                <div class="form-group">
                   <label class="control-label col-md-4">请输入卡号/手机号码</label>
                   <div class="col-md-8">
                      <input class="form-control" type="text" name = "cardNoOrTelephone" id = "cardNoOrTelephone"/>
                   </div>
                </div>
                <div class="alert alert-danger display-hide" id = "CardNoNotExists">
                  <button class="close" data-dismiss="alert"></button>
                  	卡号或手机号码不存在
               </div>
             </form>
          </div>
          <div class="modal-footer">
             <button class="btn green" onclick= "return submitCardnoOrTel();">确定</button>
             <button class="btn" data-dismiss="modal">取消</button>
          </div>
       </div>
    </div>
 </div>
<script>
	function submitCardnoOrTel(){
      	$.ajax({
            type:"post",
            url:"/pims/admin/member!validationCardnoOrTel.action",
            dataType:"json",
            data:"cardnoOrTel="+$("#cardNoOrTelephone").val(),
            cache:false,
            beforeSend:function(XMLHttpRequest){
            },
            success:function(json){
            	result = json.result;
            	if(result){
            		window.location.href="/pims/admin/member!memberInfo.action?cardnoOrTel="+$("#cardNoOrTelephone").val();
            	}else{
            		$("#CardNoNotExists").removeClass("display-hide");
            	}
            },
           	complete:function(XMLHttpRequest,textStatus){
           	},
          	error:function(XMLHttpRequest,textStatus,errorThrown){
                   alert("网络错误");
          	}
        });
        return false;
      }
</script>